<style type="text/css">
  body { background-color: #fff; color: #333; }

  body, p, ol, ul, td {
    font-family: verdana, arial, helvetica, sans-serif;
    font-size:   13px;
  }

  pre {
    background-color: #eee;
    padding: 10px;
    font-size: 11px;
  }
  
  a {  text-decoration:none;}
  a:hover{text-decoration:underline}
  a:visited{color:teal;}
  img{border:none;}

  body{background:#C9DDF0; margin-left:5px;}

  .left-frame h3{ border-bottom:solid 2px #ccc; background:#eee; padding:3px;}
  .left-frame ul{margin:0; padding:0; list-style:none;}
  .left-frame ul li{line-height:20px;}
  .left-frame ul li a:hover{ color:blue;}

</style>
<script type="text/javascript" src="/javascripts/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $(".left-frame>ul>li ul").hide();
    $(".left-frame>ul>li").css({"font-weight":"bold","cursor":"pointer"});
    $(".title").toggle(function(){
      $(this).siblings("ul").show();
    },function(){
      $(this).siblings("ul").hide();
    });
    $(".left-frame>ul ul").css({"font-weight":"normal","margin-left":"10px"});
    $("a[rel=dis]").toggle(
    function(){
      $(".left-frame>ul>li ul").show();
      $(this).html("全部折叠");

    }, function(){
      $(".left-frame>ul>li ul").hide();
      $(this).html("全部展开");
    })
  });
</script>
<div class="left-frame">
  <h3>管理列表</h3>
  <strong>欢迎 <%=h current_user.login %></strong> <%= link_to '退出', logout_path,:target=>"_top" %>
  <a href="#" rel="dis">全部展开</a>
  <ul>
    <li><span class="title">网站基本设置</span>
      <ul>
        <li><%=link_to "应用程序配置",webconfigs_path("style"=>0),:target=>"main_frame" %></li>
        <li><%=link_to "顶部导航设置",navigations_path(:style=>1),:target=>"main_frame" %></li>
        <li><%=link_to "底部导航列表",webconfigs_path("style"=>1),:target=>"main_frame" %></li>
        <li><%=link_to "在线QQ代码",edit_webconfig_path(0,"style"=>2),:target=>"main_frame" %></li>
        <li><%=link_to "主菜单设置",navigations_path(:style=>0),:target=>"main_frame" %></li>
        <li><%=link_to "广告类型",:styles,:target=>"main_frame" %></li>
        <li><a href="http://www.51.la/report/1_main.asp?id=2795849" target="main_frame">流量统计</a> </li>

      </ul>
    </li>
    <li><span class="title">产品属性基本设置</span>
      <ul>
        <li><%=link_to "产品类别",:procates,:target=>"main_frame" %></li>
        <li><%=link_to "参数类别",:template_styles,:target=>"main_frame" %></li>
        <li><%=link_to "属性模版类别",:template_categories,:target=>"main_frame" %></li>

        <li><%=link_to "产品类别属性",:product_attribute_templates,:target=>"main_frame" %></li>

        <li><%=link_to "选项列表",:lookuplists,:target=>"main_frame" %></li>
      </ul>
    </li>
    <li> <span class="title">产品设置</span>
      <ul>
        <li><%=link_to "产品列表",procate_products_path(0),:target=>"main_frame" %></li>
        <li><%=link_to "产品图片",product_pro_images_path(0) ,:target=>"main_frame" %></li>
        <li><%=link_to "团购产品",:tuangou_pros,:target=>"main_frame" %></li>
        <li><%=link_to "团购报名",:baomings,:target=>"main_frame" %></li>
        <li><%=link_to "产品留言",list_product_pro_reviews_path(0),:target=>"main_frame" %></li>
      </ul>
    </li>
    <li><span class="title">订单管理</span>
      <ul>
        <li><%=link_to "订单列表",:orders,:target=>"main_frame" %></li>
      </ul>
    </li>
    <li><span class="title">页面基本设置</span>
      <ul>
        <li><%=link_to "首页循环图片设置",:cycles,:target=>"main_frame" %></li>
        <li><%=link_to "链接管理",:links,:target=>"main_frame" %></li>
        <li><%=link_to "页面广告",:advertisements,:target=>"main_frame" %></li>
      </ul>
    </li>
    <li><span class="title">文章设置</span>
      <ul>
        <li><%=link_to "文章类别",:article_categories,:target=>"main_frame" %></li>
        <li><%=link_to "文章管理",article_category_articles_path(0),:target=>"main_frame" %></li>
      </ul>
    </li>
    <li><span class="title">留言管理</span>
      <ul>
        <li><%=link_to "留言列表",:list_reviews,:target=>"main_frame" %></li>

      </ul>
    </li>
    <li><span class="title">用户管理</span>
      <ul>
        <li><%=link_to "用户列表",:users,:target=>"main_frame" %></li>
      </ul>
    </li>
    <li></li>

  </ul>

</div>

